package com.yjn.exception;

/**
 * @author yujn
 * @date 2020/5/20 9:06
 */
public class GlobalException extends RuntimeException {
    private String code;

    public GlobalException() {
        super();
    }

    public GlobalException(String message, Throwable cause, boolean enableSuppression,
                           boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }


    public GlobalException(String message, Throwable cause) {
        super(message, cause);
    }

    public GlobalException(String message, String code, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(String message,String code) {
        super(message);
        this.code = code;
    }

    public GlobalException(Throwable cause) {
        super(cause);
    }
}
